
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>glew</Name>
        <Homepage>http://glew.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <License>GLX</License>
        <License>SGI-B</License>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>OpenGL Extension Wrangler Library</Summary>
        <Description>OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file.</Description>
        <Archive sha1sum="6e15c84f7e1fad34cd3679f784a233744ddf048f" type="targz">mirrors://sourceforge/glew/2.0.0/glew-2.0.0.tgz</Archive>
        <BuildDependencies>
            <Dependency>mesa-glu-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--Dont change order of patch, otherwise "add_bin_target" cannot be applied-->
<!--             <Patch level="1">add_bin_target.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>glew</Name>
        <RuntimeDependencies>
            <Dependency>mesa</Dependency>
            <Dependency>libX11</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>glew-devel</Name>
        <Summary>Development files for glew</Summary>
        <RuntimeDependencies>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency release="current">glew</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/GL</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>glew-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for glew</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>mesa-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>mesa-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency release="current">glew</Dependency>
        </RuntimeDependencies>

        <Files>
            <Path fileType="library">/usr/lib32</Path>            
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-15</Date>
            <Version>2.0.0</Version>
            <Comment>Rebuild for new Mesa</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-11-02</Date>
            <Version>2.0.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>1.13.0</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-15</Date>
            <Version>1.12.0</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
